//
//  UIBarButtonItem+JPF.h
//  JPFCore
//
//  Created by JPFei on 2019/3/26.
//  Copyright © 2019 JPF All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIBarButtonItem (JPF)

+ (UIBarButtonItem *)barButtonItemWithImage:(UIImage *)image
                                      title:(NSString *)title
                                 titleColor:(UIColor *)titleColor
                                     action:(SEL)action
                                     target:(id)target;

+ (UIBarButtonItem *)barButtonItemWithImage:( UIImage * _Nullable)image
                                      title:(NSString * _Nullable)title
                                     action:(SEL)action
                                     target:(id)target;

+ (UIBarButtonItem *)leftBarButtonItemWithImage:(UIImage * _Nullable)image
                                          title:(NSString * _Nullable)title
                                         action:(SEL)action
                                         target:(id)target;

+ (UIBarButtonItem *)rightBarButtonItemWithImage:(UIImage * _Nullable)image
                                           title:(NSString * _Nullable)title
                                          action:(SEL)action
                                          target:(id)target;
- (void)setCustomViewHorizontalAlignment:(UIControlContentHorizontalAlignment)horizontalAlignment;
- (void)setCustomViewVerticalAlignment:(UIControlContentVerticalAlignment)verticalAlignment;


+ (UIButton *)barButton:(UIImage *)image
                  title:(NSString *)title
                 action:(SEL)action
                 target:(id)target;

+ (UIButton *)barButton:(UIImage *)image
                  title:(NSString *)title
             titleColor:(UIColor *)titleColor
                 action:(SEL)action
                 target:(id)target;

@end

NS_ASSUME_NONNULL_END
